package com.zys.el.search.dao;

import com.zys.el.search.po.Anticle;
import com.zys.el.search.po.SearchRequest;

import java.io.IOException;
import java.util.List;

public interface AnticleDao {

    public boolean createIndex() throws IOException;

    public boolean addDoc(Anticle anticle);

    public boolean addAllDoc(List<Anticle> list) throws IOException;

    public Anticle getById(Long id);

    public List<Anticle> search(String field, SearchRequest searchRequest) throws IOException;

    public Boolean deleteDocById(Long id);
}
